package com.example.game.hff;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.KeyEvent;
import java.io.IOException;
import java.net.URL;
import java.util.LinkedList;

import javax.imageio.ImageIO;

public class EndGame implements Constants{
	
	private Image image;//표시될 이미지
	private int x, y;//위치 정보
	
			
	



	public EndGame(Image image) {
		this.image = image;
		x = 0;
		y = 0;
	}
	
	
	public void draw(Graphics g) {
		g.drawImage(image, x, y,  null);
				
	}
	

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}
	

	
	public int getWidth() {
		return image.getWidth(null);
	}
	
	public int getHeight() {
		return image.getHeight(null);
	}

}
